package com.zjl.Zookeeper.第02章_下载安装;

/**
 * # 服务启停则可以用如下方式
 *      systemctl start zookeeper
 *      systemctl stop zookeeper
 *
 * 实现方法：
 *      在 /lib/systemd/system/ 目录下创建 zookeeper.service文件
 *
 * [root@poc01 bin]# vim /lib/systemd/system/zookeeper.service
 *          [Unit]
 *          Description=Apache ZooKeeper Distributed Coordination Service
 *          After=network.target
 *          [Service]
 *          User=root
 *          Group=root
 *          WorkingDirectory=zk的路径/zookeeper-7.1.0
 *          ExecStart=zk的路径/zookeeper-7.1.0/bin/zkServer.sh start
 *          ExecStop=zk的路径/zookeeper-7.1.0/bin/zkServer.sh stop
 *          Restart=always
 *          RestartSec=10
 *          [Install]
 *          WantedBy=multi-user.target
 *
 * # 重新加载配置信息
 * [root@poc01 ~]# systemctl daemon-reload
 *
 * # 启动服务
 * [root@poc01 ~]# systemctl start zookeeper
 * # 查看状态
 * [root@poc01 ~]# systemctl status zookeeper
 *
 * # 添加至开机自启
 * [root@poc01 ~]# systemctl enable zookeeper.service
 * # 关闭开机自启
 * [root@poc01 ~]# systemctl disable zookeeper.service
 */
public class F_使用linux的系统实现启动关闭 {
}
